<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">

<head th:replace="top::html">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
</head>

<body class="fixed hold-transition skin-blue">
	<div class="wrapper">
		<div th:replace="tophtml::html"></div>
		<div th:replace="left::html"></div>
		<div class="content-wrapper">
			<section class="content-header">
				<h1>
					统计详情 <small></small>
				</h1>
				<ol class="breadcrumb">
					<li><a href="/index"><i class="fa fa-dashboard"></i>用户中心</a></li>
					<li><a th:href="@{/demand/statistics}"><i class="fa fa-dashboard"></i>统计</a></li>
					<li><a href="">统计详情</a></li>
				</ol>
			</section>
			<section class="content container-fluid">
				<form class="form-inline" th:with="meth=${param.operaIndex} ? 'updateDetailStatistics' : 'detailStatistics'" th:action="@{${route}+'/'+${meth}}" method="get" id="from1">
					<input type="hidden" name="pageNo" id="pageNo">
					<input type="hidden" name="beginDate" th:value="${param.beginDate}">
					<input type="hidden" name="endDate" th:value="${param.endDate}">
					<input type="hidden" name="userId" th:value="${param.userId}">
					<input type="hidden" th:if="${param.operaIndex}" name="operaIndex" th:value="${param.operaIndex}">
					<input type="hidden" th:if="${param.fullname}" name="fullname" th:value="${param.fullname}">
 				</form>
				<div class="box">
					<div class="box-body">
						<table th:if="${pageInfo_project}" class="table table-bordered">
							<tbody>
								<tr>
									<th>收录人</th>
									<th>收录时间</th>
									<th>项目ID</th>
									<th>项目名称</th>
									<th>项目状态</th>
									<th>项目类型</th>
								</tr>
								<tr th:each="obj : ${pageInfo.list}">
									<td th:text="${obj.collectPersonId}"></td>
									<td th:text="${obj.entryTime}"></td>
									<td>
										<a th:href="@{/project/showDetail(projectId=${obj.pid})}" th:text="'R'+${obj.projectNumber}"></a>
									</td>
									<td th:text="${obj.projectName} and ${#strings.length(obj.projectName)} > 20 ? ${#strings.substring(obj.projectName, 0, 20)}+'...' : ${obj.projectName}" th:title="${obj.projectName}"></td>
									<td th:text="${obj.projectStatusWorth}"></td>
									<td th:text="${obj.projectType}"></td>
								</tr>
							</tbody>
						</table>
						<table th:if="${pageInfo_demand}" class="table table-bordered">
							<tbody>
								<tr>
									<th>收录人</th>
									<th>收录时间</th>
									<th>需求ID</th>
									<th>需求名称</th>
									<th>需求状态</th>
									<th>需求类型</th>
								</tr>
								<tr th:each="obj : ${pageInfo.list}">
									<td th:text="${obj.collectPersonId}"></td>
									<td th:text="${obj.entryTime}"></td>
									<td>
										<a th:href="@{/demand/showDetail(demandId=${obj.pid})}" th:text="'D'+${obj.demandNumber}"></a>
									</td>
									<td th:text="${obj.demandName} and ${#strings.length(obj.demandName)} > 20 ? ${#strings.substring(obj.demandName, 0, 20)}+'...' : ${obj.demandName}" th:title="${obj.demandName}"></td>
									<td th:text="${obj.demandStatusWorth}"></td>
									<td th:text="${obj.demandType}"></td>
								</tr>
							</tbody>
						</table>
						<table th:if="${pageInfo_customer}" class="table table-bordered">
							<tbody>
								<tr>
									<th>收录人</th>
									<th>收录时间</th>
									<th>客户ID</th>
									<th>客户名称</th>
									<th>主要需求</th>
									<th>当前合作状态</th>
								</tr>
								<tr th:each="obj : ${pageInfo.list}">
									<td th:text="${obj.collectPersonId}"></td>
									<td th:text="${obj.entryTime}"></td>
									<td>
										<a th:href="@{/customer/showDetail(customerId=${obj.pid})}" th:text="'C'+${obj.customerNumber}"></a>
									</td>
									<td th:text="${obj.customerName}"></td>
									<td th:text="${obj.majorNeeds} and ${#strings.length(obj.majorNeeds)} > 20 ? ${#strings.substring(obj.majorNeeds, 0, 20)}+'...' : ${obj.majorNeeds}"  th:title="${obj.majorNeeds}"></td>
									<td th:text="${obj.currentStateName}"></td>
								</tr>
							</tbody>
						</table>
						<table th:if="${pageInfo_person}" class="table table-bordered">
							<tbody>
								<tr>
									<th>收录人</th>
									<th>收录时间</th>
									<th>专家ID</th>
									<th>专家姓名</th>
									<th>手机</th>
									<th>邮箱</th>
									<th>专业领域</th>
								</tr>
								<tr th:each="obj : ${pageInfo.list}">
									<td th:text="${obj.collectPersonId}"></td>
									<td th:text="${obj.entryTime}"></td>
									<td>
										<a th:href="@{/person/personDetails(pid=${obj.pid})}" th:text="'E'+${obj.expertNumber}"></a>
									</td>
									<td th:text="${obj.name}"></td>
									<td th:text="${obj.tell}"></td>
									<td th:text="${obj.email}"></td>
									<td th:text="${obj.professionaField} and ${#strings.length(obj.professionaField)}>20 ? ${#strings.substring(obj.professionaField, 0, 20)}+'...' : ${obj.professionaField}" th:title="${obj.professionaField}"></td>
								</tr>
							</tbody>
						</table>
						<table th:if="${pageInfo_details}" class="table table-bordered">
							<tbody>
								<tr>
									<th>对接负责人</th>
									<th>介绍</th>
									<th>对接时间</th>
									<th>对接状态</th>
									<th>详情</th>
									<th>历史</th>
								</tr>
								<tr th:each="obj : ${pageInfo.list}">
									<td th:text="${obj.buttName}"></td>
									<td>
                                        <p th:if="${obj.projectName}" th:text="${obj.projectName} and ${#strings.length(obj.projectName)} > 20 ? ${#strings.substring(obj.projectName, 0, 20)}+'...' : ${obj.projectName}" th:title="${obj.projectName}"></p>
										<p th:if="${obj.demandName}" th:text="${obj.demandName} and ${#strings.length(obj.demandName)} > 20 ? ${#strings.substring(obj.demandName, 0, 20)}+'...' : ${obj.demandName}" th:title="${obj.demandName}"></p>
                                        <p th:if="${obj.customerName}" th:text="${obj.customerName} and ${#strings.length(obj.customerName)} > 20 ? ${#strings.substring(obj.customerName, 0, 20)}+'...' : ${obj.customerName}" th:title="${obj.customerName}"></p>
                                        <p th:if="${obj.expertName}" th:text="${obj.expertName} and ${#strings.length(obj.expertName)} > 20 ? ${#strings.substring(obj.expertName, 0, 20)}+'...' : ${obj.expertName}" th:title="${obj.expertName}"></p>
                                        <p th:if="${obj.confName}" th:text="${obj.confName} and ${#strings.length(obj.confName)} > 20 ? ${#strings.substring(obj.confName, 0, 20)}+'...' : ${obj.confName}" th:title="${obj.confName}"></p>
									</td>
									<td th:text="${obj.buttDataTime}"></td>
									<td th:text="${obj.buttStatusWorth}"></td>
									<td th:text="${obj.buttDetails}"></td>
									<td>
										<a th:href="@{/details/showStaHistory(buttdetails=${obj.pid})}">历史详情</a>
									</td>
								</tr>
							</tbody>
						</table>
						<div th:replace="page::html"></div>
					</div>
				</div>
			</section>
			<div id="back-center">
				<button type="button" class="btn btn-primary" onclick="self.close()">返回</button>
			</div>
		</div>
		<div th:replace="footer::html"></div>
		<div class="control-sidebar-bg"></div>
	</div>
	<div th:replace="bottom::html"></div>
</body>

</html>